package com.seckillpro.seckill_pro.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.seckillpro.seckill_pro.pojo.TGoods;
import com.seckillpro.seckill_pro.vo.AddGoodVo;
import com.seckillpro.seckill_pro.vo.GoodsVo;
import com.seckillpro.seckill_pro.vo.RespBean;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lyx
 * @since 2021-03-05
 */
public interface ITGoodsService extends IService<TGoods> {

    /**
     * @return
     */
    List<GoodsVo> findGoodsVoList();

    /**
     * 获取商品详情
     *
     * @param goodId
     * @return
     */
    GoodsVo findGoodsVoByGoodId(Long goodId);

    /**
     * 添加商品
     *
     * @param addGoodVo
     * @return
     */
    RespBean addGood(AddGoodVo addGoodVo);

    /**
     * @param goodId
     * @return
     */
    RespBean removeGood(Long goodId);
}
